<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	response.setHeader("X-Frame-Options","SAMEORIGIN");
%>
<anychart>
	<settings>
		<animation enabled="True" />
	</settings>
	<charts>
		<chart plot_type="CategorizedVertical">
			<data_plot_settings default_series_type="Bar">
				<bar_series group_padding="0.5">
				       <tooltip_settings enabled="true">
						    <format>
								{%YPercentOfSeries}{numDecimals: 2}%
						     </format>
				       </tooltip_settings> 
				       <label_settings enabled="true">
							<background enabled="false" />
							<font color="DarkColor(%Color)" />
							<format>{%YValue}{numDecimals:0}</format>
							<effects>
								<drop_shadow enabled="true" opacity="1" />
							</effects>
						</label_settings>    
				 </bar_series>
			 </data_plot_settings>
		<chart_settings>
			<title enabled="true">
				<text>在线调查投票情况</text>
			</title>
			<legend enabled="true" position="Bottom" align="Spread" ignore_auto_item="true" padding="15">
			    <format>{%Icon} {%Name} ({%YValue})</format>
			    <template></template>
			    <title enabled="true">
			    	<text>选项名称</text>
			    </title>
			    <columns_separator enabled="false"/>
			    <background>
			        <inside_margin left="10" right="10"/>
			    </background>
			    <items>
			        <item source="Points"/>
			    </items>
			</legend>
			<axes>
				<y_axis>
					<title><text>投票数</text></title>
				</y_axis>
				<x_axis>
					<title enabled="true"><text>投票选项</text></title>
				</x_axis>
			</axes>
		</chart_settings>
		<data>
			<series name="Series 1" palette="Default">
				<point name="自然人" y="${list[0]}" />
				<point name="企业" y="${list[1] }" />
				<point name="自然人和企业" y="${list[2] }" />
				<point name="第三方机构" y="${list[3] }" />
			</series>
		</data>
	</chart>
	</charts>
</anychart>
